import request from '@/common/requestV2'

//查询文章列表
export function getPage(data) {
  return request({
    url: '/admin/article/getPage',
    method: 'post',
    data: data
  })
}

export function saveOrUpdate(data) {
  return request({
    url: '/admin/article/saveArticle',
    method: 'post',
    data: data
  })
}

export function remove(id) {
  return request({
    url: '/admin/article/delete/'+id,
    method: 'get',
  })
}

export function get(id) {
  return request({
    url: '/admin/article/'+id,
    method: 'get',
  })
}
